package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 场地申请表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_site_apply_for")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SiteApplyForModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer incubatorsId;//场地ID
    private Integer userId;//用户ID
    private String realName;//真实姓名
    private String phone;//电话
    private String industry;//行业
    private String squareMeasure;//面积

    private String other;//其他需求

    private Integer state;//1审核通过2审核不通过
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
    @TableField(exist = false)
    private Integer limit;
    @TableField(exist = false)
    private Integer page;
    /**
     * 场地名称
     */
    @TableField(exist = false)
    private String siteName;


}
